package com.zui.entity.setup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


@Entity
@Table(name="contact_mech_postal_addr")
public class PostalAddress extends ContactMech {
	private static final long serialVersionUID = 1L;
	
	public PostalAddress(){setContactMechType(new ContactMechType(ContactMechType.TYPE_POSTAL_ADDRESS));}
	
	private String toName;
	private String attnName;
	private String address1;
	private String address2;
	private String directions;
	private String city;
	private String postalId;
	private String postalIdExt;
	private String countryGeoId;
	private String postalGeoId;
	private String geoPointId;

	
	/*------------------------------
	 * getters and annotations
	 --------------------------------*/
	/**
	 * @TODO: other getters and GEOS
	 */
	@Column(length=100)
	public String getToName() {return toName;}
	@Column(length=100)
	public String getAttnName() {return attnName;}
	public String getAddress1() {return address1;}
	public String getAddress2() {return address2;}
	public String getDirections() {return directions;}
	public String getCity() {return city;}
	@Column(length=60)
	public String getPostalId() {return postalId;}
	@Column(length=60)
	public String getPostalIdExt() {return postalIdExt;}
	public String getCountryGeoId() {
		return countryGeoId;
	}
	public String getPostalGeoId() {
		return postalGeoId;
	}
	public String getGeoPointId() {
		return geoPointId;
	}


	/*------------------------------
	 * setters
	 --------------------------------*/
	public void setToName(String toName) {
		this.toName = toName;
	}
	public void setAttnName(String attnName) {
		this.attnName = attnName;
	}
	public void setAddress1(String address1) {
		this.address1 = address1;
	}
	public void setAddress2(String address2) {
		this.address2 = address2;
	}
	public void setDirections(String directions) {
		this.directions = directions;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public void setPostalId(String postalId) {
		this.postalId = postalId;
	}
	public void setPostalIdExt(String postalIdExt) {
		this.postalIdExt = postalIdExt;
	}
	public void setCountryGeoId(String countryGeoId) {
		this.countryGeoId = countryGeoId;
	}
	public void setPostalGeoId(String postalGeoId) {
		this.postalGeoId = postalGeoId;
	}
	public void setGeoPointId(String geoPointId) {
		this.geoPointId = geoPointId;
	}
}
